package com.cqdev.washer.biz.model;

import com.cqdev.washer.infra.enums.DBDriverType;
import lombok.Data;

/**
 * @author yunfei.li
 *         类描述: TODO
 *         日期： 2018/6/22
 */
@Data
public class DbConfigBO {

    private Long id;

    private String url;

    private String username;

    private String password;

    private String dbName;

    private DBDriverType dbDriverType;

    public DbConfigBO(Long id, String url, String username, String password, String dbName, DBDriverType dbDriverType) {
        this.id = id;
        this.url = url;
        this.username = username;
        this.password = password;
        this.dbName = dbName;
        this.dbDriverType = dbDriverType;
    }

    public DbConfigBO(String url, String username, String password, String dbName, DBDriverType dbDriverType) {
        this.url = url;
        this.username = username;
        this.password = password;
        this.dbName = dbName;
        this.dbDriverType = dbDriverType;
    }

    public DbConfigBO() {
    }
}
